import { formatTime } from '@/utils'
import i18n from '@/locales/index'
const { t } = i18n.global

export const columns = [
  // { title: '组别', dataIndex: 'group', key: 'group', align: 'center', width: 120 },
  { title: t('common.date'), dataIndex: 'createTime', key: 'createTime', align: 'center', width: 120, timeType: 'day',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD')
    } 
  },
  { title: t('hangManage.makeNo'), dataIndex: 'moNo', key: 'moNo', align: 'center', width: 120 },
  { title: t('basicData.styleNo'), dataIndex: 'styleNo', key: 'styleNo', align: 'center', width: 120 },
  { title: t('basicData.productType'), dataIndex: 'productType', key: 'productType', align: 'center', width: 120 },
  { title: t('other.targetYield'), dataIndex: 'targetYield', key: 'targetYield', align: 'center', width: 120 },
  { title: t('other.actualOutput'), dataIndex: 'realYield', key: 'realYield', align: 'center', width: 120 },
  { title: t('other.yieldRate'), dataIndex: 'achieveRate', key: 'achieveRate', align: 'center', width: 120 },
]